package com.healer.springcloud;

import com.healer.myrule.HealerRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

//Ribbon 和 Eureka 整合之后，客户端可以直接使用，不用关系ip地址和端口号
@SpringBootApplication
@EnableEurekaClient
//在微服务启动的时候就可以去加载我们自定义的Ribbon类
@RibbonClient(name="SPRINGCLOUD-PROVIDER-DEPARTMENT",configuration = HealerRule.class)
public class SCDConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(SCDConsumer_80.class,args);
    }
}
